package com.sec.key.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.sec.key.entity.Key;
import com.sec.user.entity.User;

@Repository("keyDao")
public interface KeyDao extends JpaRepository<Key, String> {

	public Page<Key> findAllByUser(User user, Pageable pageable);

	public List<Key> findAllByUser(User user);
}
